<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-18 17:32:18
 * @Last Modified time: 2023-02-20 16:15:01
 */
namespace app\common\enum\store\order;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class RefundStatusEnum
 * @package app\common\enum\store\order
 */
class RefundStatusEnum extends BaseEnum
{

    // 无售后
    const NO = 0;

    // 申请中
    const APPLY = 1;

    // 已拒绝
    const REJECTED = 2;

    // 进行中
    const AFOOT = 3;

    // 已完成
    const COMPLETED = 4;

    // 已取消
    const CANCEL = 5;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::NO => [
                'name' => '无售后',
                'value' => self::NO,
                'color' => "red",
            ],
            self::APPLY => [
                'name' => '申请中',
                'value' => self::APPLY,
                'color' => "red",
            ],
            self::REJECTED => [
                'name' => '已拒绝',
                'value' => self::REJECTED,
                'color' => "grey",
            ],
            self::AFOOT => [
                'name' => '进行中',
                'value' => self::AFOOT,
                'color' => "orange",
            ],
            self::CANCEL => [
                'name' => '已取消',
                'value' => self::CANCEL,
                'color' => "grey",
            ],
            self::COMPLETED => [
                'name' => '已完成',
                'value' => self::COMPLETED,
                'color' => "green",
            ],
        ];
    }
}

